home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 2 / Gold Medal Software Volume 2 (Gold Medal) (1994).iso / os2 / cenvi2.arj / PROCLIST.CMD < prev    next >
OS/2 REXX Batch file  |  1993-06-13  |  682b  |  18 lines

  1. EXTPROC CEnvi
  2. /***************************************************************************
  3.  *** ProcList.cmd - CEnvi program to list the names of processes running ***
  4.  ***                and the ID of each process.                          ***
  5.  ***************************************************************************/
  6.  
  7. PList = ProcessList()
  8. assert( NULL != PList )
  9. Count = 1 + GetArraySpan(PList)
  10. printf(" ID   Parent  name      FullName\n");
  11. printf("----  ------  --------  -------------\n");
  12. for ( i = 0; i < Count; i++ ) {
  13.    printf(" %-6d%-7d%-10s%s\n",
  14.           PList[i].id,PList[i].parent,
  15.           SplitFileName(PList[i].name).name,PList[i].name)
  16. }
  17.  
  18.